package com.zzl.bonds.ticket.dto.credit;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

/**
 * @author : spp
 * @date : 2021/12/9 09:38
 */
@Data
@ApidocModel
public class SupplierAvailableCreditDto {

    @ApidocModelProperty(description = "主键/供应商开票额度主键")
    private Integer id;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "可用授信额度")
    private Double availableAmount;

    @ApidocModelProperty(description = "授信总额度")
    private Double creditAllAmount;

    @ApidocModelProperty(description = "冻结总额度")
    private Double creditFrozenAmount;

    @ApidocModelProperty(description = "金融机构id")
    private Integer financeInstitutyId;
}
